<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue生命周期函数</title>
    <script src="https://unpkg.com/vue@next"></script>

    <!-- 

        {{check}}
                <input v-model="message" />
                <textarea v-model="message" />
                <input type="checkbox" v-model="check" />
                测试数据
            

     -->
</head>
<body>
    <div id="root"></div>
    <script>
        // vue的生命周期函数
        const app = Vue.createApp({
            data() {
                return {
                    message: [],
                    message1: '',
                    check:true
                }
            },
            template:`
                <div>
                    {{message}}
                    jack <input type="checkbox" v-model="message" value="jack">
                    dell <input type="checkbox" v-model="message" value="dell">
                    lee <input type="checkbox" v-model="message" value="lee">
                    {{message1}}
                    jack <input type="radio" v-model="message" value="jack">
                    dell <input type="radio" v-model="message" value="dell">
                    lee <input type="radio" v-model="message" value="lee">
                </div>
            `
        });
        const vm = app.mount('#root');
    </script>
</body>
</html>